import config from '@/utils/config';
import { MockMethod } from 'vite-plugin-mock';

// 热搜数据
const hotWordsData = {
  url: config.url.hot_words,
  method: 'post',
  response: () => {
    return {
      code: 200,
      data: {
        // 限制展示8个，后端控制
        hotWords: [
          '缓震跑鞋',
          '筋膜枪',
          '白酒',
          '全麦欧包',
          '空气炸锅',
          '运动手表',
          '冲锋衣',
          '即食燕麦片',
        ],
      },
      message: 'success',
    };
  },
};

export default [hotWordsData] as MockMethod[];
